\hypertarget{sc2__score_8h}{}\section{include/sc2api/sc2\+\_\+score.h File Reference}
\label{sc2__score_8h}\index{include/sc2api/sc2\+\_\+score.\+h@{include/sc2api/sc2\+\_\+score.\+h}}


Scores accumulated in a game as calculated by the game engine.  


{\ttfamily \#include \char`\"{}sc2\+\_\+proto\+\_\+interface.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}sc2\+\_\+gametypes.\+h\char`\"{}}\newline
{\ttfamily \#include $<$vector$>$}\newline
{\ttfamily \#include $<$string$>$}\newline
{\ttfamily \#include $<$stdint.\+h$>$}\newline
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structsc2_1_1_score_entry}{sc2\+::\+Score\+Entry}
\item 
struct \hyperlink{structsc2_1_1_category_score_details}{sc2\+::\+Category\+Score\+Details}
\begin{DoxyCompactList}\small\item\em \hyperlink{structsc2_1_1_score}{Score} by category. \end{DoxyCompactList}\item 
struct \hyperlink{structsc2_1_1_vital_score_details}{sc2\+::\+Vital\+Score\+Details}
\begin{DoxyCompactList}\small\item\em \hyperlink{structsc2_1_1_score}{Score} for vitals. \end{DoxyCompactList}\item 
struct \hyperlink{structsc2_1_1_score_details}{sc2\+::\+Score\+Details}
\begin{DoxyCompactList}\small\item\em Detailed scores. \end{DoxyCompactList}\item 
struct \hyperlink{structsc2_1_1_score}{sc2\+::\+Score}
\begin{DoxyCompactList}\small\item\em Scores. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bfseries S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+B\+A\+SE}(S\+T\+R\+U\+C\+T\+N\+A\+ME,  E\+N\+T\+R\+Y\+N\+A\+ME)
\item 
\#define {\bfseries S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+B\+A\+S\+E\+\_\+\+S\+T\+R\+U\+CT}(S\+T\+R\+U\+C\+T\+N\+A\+ME,  E\+N\+T\+R\+Y\+N\+A\+ME)
\item 
\#define {\bfseries S\+E\+T\+\_\+\+E\+N\+T\+RY}(S\+T\+R\+U\+C\+T\+N\+A\+ME,  E\+N\+T\+R\+Y\+N\+A\+ME)
\item 
\#define {\bfseries S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+S\+T\+R\+U\+CT}(S\+T\+R\+U\+C\+T\+N\+A\+ME,  E\+N\+T\+R\+Y\+N\+A\+ME)
\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{sc2__score_8h_aa4e8dbe2d274f393f7afb290ba84657a}\label{sc2__score_8h_aa4e8dbe2d274f393f7afb290ba84657a}} 
enum \hyperlink{sc2__score_8h_aa4e8dbe2d274f393f7afb290ba84657a}{sc2\+::\+Score\+Type} \{ {\bfseries sc2\+::\+Score\+Type\+::\+Curriculum} = 1, 
{\bfseries sc2\+::\+Score\+Type\+::\+Melee} = 2
 \}\begin{DoxyCompactList}\small\item\em Source of a score. \end{DoxyCompactList}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Scores accumulated in a game as calculated by the game engine. 



\subsection{Macro Definition Documentation}
\mbox{\Hypertarget{sc2__score_8h_acdf45bc582fc437e9d62011af4b47ba0}\label{sc2__score_8h_acdf45bc582fc437e9d62011af4b47ba0}} 
\index{sc2\+\_\+score.\+h@{sc2\+\_\+score.\+h}!S\+E\+T\+\_\+\+E\+N\+T\+RY@{S\+E\+T\+\_\+\+E\+N\+T\+RY}}
\index{S\+E\+T\+\_\+\+E\+N\+T\+RY@{S\+E\+T\+\_\+\+E\+N\+T\+RY}!sc2\+\_\+score.\+h@{sc2\+\_\+score.\+h}}
\subsubsection{\texorpdfstring{S\+E\+T\+\_\+\+E\+N\+T\+RY}{SET\_ENTRY}}
{\footnotesize\ttfamily \#define S\+E\+T\+\_\+\+E\+N\+T\+RY(\begin{DoxyParamCaption}\item[{}]{S\+T\+R\+U\+C\+T\+N\+A\+ME,  }\item[{}]{E\+N\+T\+R\+Y\+N\+A\+ME }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}
\{                                                                               \(\backslash\)
        ScoreEntry new\_entry = base;                                                \(\backslash\)
        new\_entry.offset += (int)int64\_t(&(((STRUCTNAME*)0)->ENTRYNAME));           \(\backslash\)
        new\_entry.name += \textcolor{stringliteral}{"."}#ENTRYNAME;                                            \(\backslash\)
        entries.push\_back(new\_entry);                                               \(\backslash\)
    \}
\end{DoxyCode}
\mbox{\Hypertarget{sc2__score_8h_a6709f7681d50d9695b8011b5f1b5cb80}\label{sc2__score_8h_a6709f7681d50d9695b8011b5f1b5cb80}} 
\index{sc2\+\_\+score.\+h@{sc2\+\_\+score.\+h}!S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+B\+A\+SE@{S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+B\+A\+SE}}
\index{S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+B\+A\+SE@{S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+B\+A\+SE}!sc2\+\_\+score.\+h@{sc2\+\_\+score.\+h}}
\subsubsection{\texorpdfstring{S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+B\+A\+SE}{SET\_ENTRY\_BASE}}
{\footnotesize\ttfamily \#define S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+B\+A\+SE(\begin{DoxyParamCaption}\item[{}]{S\+T\+R\+U\+C\+T\+N\+A\+ME,  }\item[{}]{E\+N\+T\+R\+Y\+N\+A\+ME }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}
\{                                                                               \(\backslash\)
        ScoreEntry new\_entry;                                                       \(\backslash\)
        new\_entry.offset += (int)int64\_t(&(((STRUCTNAME*)0)->ENTRYNAME));           \(\backslash\)
        new\_entry.name += #STRUCTNAME\textcolor{stringliteral}{"."}#ENTRYNAME;                                 \(\backslash\)
        entries.push\_back(new\_entry);                                               \(\backslash\)
    \}
\end{DoxyCode}
\mbox{\Hypertarget{sc2__score_8h_a9608bb575077483d8b5c84fdc622893f}\label{sc2__score_8h_a9608bb575077483d8b5c84fdc622893f}} 
\index{sc2\+\_\+score.\+h@{sc2\+\_\+score.\+h}!S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+B\+A\+S\+E\+\_\+\+S\+T\+R\+U\+CT@{S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+B\+A\+S\+E\+\_\+\+S\+T\+R\+U\+CT}}
\index{S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+B\+A\+S\+E\+\_\+\+S\+T\+R\+U\+CT@{S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+B\+A\+S\+E\+\_\+\+S\+T\+R\+U\+CT}!sc2\+\_\+score.\+h@{sc2\+\_\+score.\+h}}
\subsubsection{\texorpdfstring{S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+B\+A\+S\+E\+\_\+\+S\+T\+R\+U\+CT}{SET\_ENTRY\_BASE\_STRUCT}}
{\footnotesize\ttfamily \#define S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+B\+A\+S\+E\+\_\+\+S\+T\+R\+U\+CT(\begin{DoxyParamCaption}\item[{}]{S\+T\+R\+U\+C\+T\+N\+A\+ME,  }\item[{}]{E\+N\+T\+R\+Y\+N\+A\+ME }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}
\{                                                                               \(\backslash\)
        ScoreEntry base\_entry;                                                      \(\backslash\)
        base\_entry.offset += (int)int64\_t(&(((STRUCTNAME*)0)->ENTRYNAME));          \(\backslash\)
        base\_entry.name += #STRUCTNAME\textcolor{stringliteral}{"."}#ENTRYNAME;                                \(\backslash\)
        ((STRUCTNAME*)0)->ENTRYNAME.AddEntries(base\_entry, entries);                \(\backslash\)
    \}
\end{DoxyCode}
\mbox{\Hypertarget{sc2__score_8h_a1bd7e9783b9cf7e1ce6efd3cf55575a0}\label{sc2__score_8h_a1bd7e9783b9cf7e1ce6efd3cf55575a0}} 
\index{sc2\+\_\+score.\+h@{sc2\+\_\+score.\+h}!S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+S\+T\+R\+U\+CT@{S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+S\+T\+R\+U\+CT}}
\index{S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+S\+T\+R\+U\+CT@{S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+S\+T\+R\+U\+CT}!sc2\+\_\+score.\+h@{sc2\+\_\+score.\+h}}
\subsubsection{\texorpdfstring{S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+S\+T\+R\+U\+CT}{SET\_ENTRY\_STRUCT}}
{\footnotesize\ttfamily \#define S\+E\+T\+\_\+\+E\+N\+T\+R\+Y\+\_\+\+S\+T\+R\+U\+CT(\begin{DoxyParamCaption}\item[{}]{S\+T\+R\+U\+C\+T\+N\+A\+ME,  }\item[{}]{E\+N\+T\+R\+Y\+N\+A\+ME }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}
\{                                                                               \(\backslash\)
        ScoreEntry new\_entry = base;                                                \(\backslash\)
        new\_entry.offset += (int)int64\_t(&(((STRUCTNAME*)0)->ENTRYNAME));           \(\backslash\)
        new\_entry.name += \textcolor{stringliteral}{"."}#ENTRYNAME;                                            \(\backslash\)
        ((STRUCTNAME*)0)->ENTRYNAME.AddEntries(new\_entry, entries);                 \(\backslash\)
    \}
\end{DoxyCode}
